package com.tiger.db.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import org.springframework.lang.Nullable;

@Data
@TableName(value = "app_category", autoResultMap = true)
public class AppCategory {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField(value = "related", typeHandler = JacksonTypeHandler.class, fill = FieldFill.UPDATE)
    @Nullable
    private Long[] related;

    @TableField("auth")
    private boolean auth;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("top_id")
    private Integer topId;

    @TableField("sort")
    private Integer sort;

    @TableField("enable")
    private boolean enable;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;

    private Long creatorId;

    private long visitors;
    private long uniqueVisitors;
    private long visitTimes;
}
